package demo2;

public class Test {
    public static void shape(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        Cycle cycle = new Cycle();
        Rect rect = new Rect();
        shape(cycle);
        shape(rect);
    }
}
